package _go

func lengthOfLastWord(s string) int {

	l := len(s)
	var sal int = 0

	for i := l - 1; i >= 0; i-- {
		if string(s[i]) != " " {
			sal++
		}

		if sal > 0 && string(s[i]) == " " {
			break
		}
		//  fmt.Printf("sdfsdf %d \n",sal)
	}
	return sal
}
